import base from './base';

const main = {
    ProductDetail(params={}) {
        return base.AxiosRequest.ApiPost(`${base.base.dp}/product/detail`,params)
    },
    Collection(params={}) {
        return base.AxiosRequest.ApiPost(`${base.base.dp}/product/collection`,params)
    },
    KeywordSearch(params={}){
        return base.AxiosRequest.ApiPost(`${base.base.dp}/product/keyword_search`,params)
    },
    Order(params={}) {
        return base.AxiosRequest.ApiPost(`${base.base.dp}/order/add`,params)
    },
    GetOrderMine(params={}) {
        return base.AxiosRequest.ApiPost(`${base.base.dp}/order/user_order`,params)
    },
    UploadAvatar(params={}) {
        return base.AxiosRequest.AxiosUpload(`${base.base.dp}/user/avatar_upload`,params)
    },
    EditUserInfo(params={}) {
        return base.AxiosRequest.ApiPost(`${base.base.dp}/user/edit_user`,params)
    },
    GetUserInfo(params={}) {
        return base.AxiosRequest.ApiPost(`${base.base.dp}/user/user_info`,params)
    },
    GetCategory(params={}) {
        return base.AxiosRequest.ApiPost(`${base.base.dp}/category/get_category`,params)
    },
    GetCateDetail(params={}) {
        return base.AxiosRequest.ApiPost(`${base.base.dp}/category/get_category_detail`,params)
    },
    GetSimulation(params={}){
        return base.AxiosRequest.ApiGet(`${base.base.dp}/ai/simulation`,params)
    },
    UserCollection(params={}){
        return base.AxiosRequest.ApiGet(`${base.base.dp}/user/collection`,params)
    }
};
export default main;
